package paas.storage.dto;

import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.annotation.JSONField;

/**
 * 备注
 *{
 * 	"MaxVersions": 3,
 * 	"TimeRange": "[454546,677357]",
 * 	"filter": {
 * 		"SingleColumnValue Filter": {
 * 			"family": Bytes.
 * 				.toBytes("columnfamily1"),
 * 			"qualifier": Bytes.toBytes("column1"),
 * 			"compareOp": CompareOp.EQUAL,
 * 			"value": Bytes.
 * 				.toBytes("2013-06-08")
 *                }* 	}
 * @author xufeng
 * @email 525207937@qq.com
 * @date 2021/1/26 10:16
 */
public class DataQueryConditionsParam {

    /**
     * 最大版本号
     */
    @JSONField(name = "MaxVersions")
    private int maxVersions;
    /**
     * 时间范围 "[454546,677357]"
     */
    @JSONField(name = "TimeRange")
    private String timeRange;
    /**
     * 过滤器
     */
    private String filter;


    public DataQueryConditionsParam() {
    }

    public DataQueryConditionsParam(int maxVersions, String timeRange, String filter) {
        this.maxVersions = maxVersions;
        this.timeRange = timeRange;
        this.filter = filter;
    }

    public int getMaxVersions() {
        return maxVersions;
    }

    public void setMaxVersions(int maxVersions) {
        this.maxVersions = maxVersions;
    }

    public String getTimeRange() {
        return timeRange;
    }

    public void setTimeRange(String timeRange) {
        this.timeRange = timeRange;
    }

    public String getFilter() {
        return filter;
    }

    public void setFilter(String filter) {
        this.filter = filter;
    }

    @Override
    public String toString() {
        return "DataQueryConditionsParam{" +
                "maxVersions=" + maxVersions +
                ", timeRange='" + timeRange + '\'' +
                ", filter='" + filter + '\'' +
                '}';
    }
}
